/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.5                                   |
|   \\  /    A nd           | Web:      http://www.OpenFOAM.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

libs ( 
	"mylibcompressibleRASModels.so"
);

application     rhoSimpleFoam;

startFrom     startTime;

startTime     0;

stopAt     endTime;

endTime     4500;

deltaT    1;

writeControl    timeStep;

writeInterval     100;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression uncompressed;

timeFormat      general;

timePrecision   6;

graphFormat     raw;

runTimeModifiable yes;

// ************************************************************************* //


functions
(
        forces
        {
                type forces;
                functionObjectLibs ("libforces.so"); //Lib to load
        	outputControl    timeStep;
        	outputInterval 1;        
                patches (cylinder); // change to your patch name
                rhoInf 1.165; //Reference density for fluid
                nuInf 1.6e-5; //Reference kinetic viscosity for fluid
                CofR (0 0 0); //Origin for moment calculations
        }
        forceCoeffs
        {
                type forceCoeffs;
                functionObjectLibs ("libforces.so");
                outputControl   timeStep;
        	outputInterval 1;
                patches (cylinder); //change to your patch name
		rhoName rhoInf;
                rhoInf 1.165;
                nuInf 1.6e-5;
                CofR (0 0 0);
                liftDir (0 0 1);
                dragDir (-1 0 0);
                pitchAxis (0 1 0);
                magUInf 23.45;
                lRef 0.15;
                Aref 0.075;
        }
);
